﻿using iS3.DAL;
using iS3.DAL.SQLSERVER;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace iS3.Server.Core.Core
{
    public class DataContextFactory
    {
        public static IDataContext<T>  GetDataContext<T>(string connectionStr,DGEntityStruct des=null) where T:DGBase,new()
        {
            return new DataContext_SQLSERVER<T>(connectionStr, des);
        }
    }
}
